<?php
/**
 * Created by Mauro Gadaleta
 * User: Mauro Gadaleta
 * Date: 28/04/11
 * Time: 12:22
 *
 * Recoje los parametros de configuracion de la base de datos y los guarda como DEFINE 's.
 */

$configuration = Doctrine::getTable('MFConfiguration')->find(1);

define('DEBUG',$configuration->debug);

/*
 * server configuration
 */
define('__WEB_ROOT',$configuration->web_root);
define('__SRC_PATH',$configuration->src_path);
define('__MEDIA__IMAGES_PATH',$configuration->media_images_path);

/*
 * application configuration
 */
define('WEBTHEME',$configuration->web_theme);
define('WEBTITLE',$configuration->web_title);
define('MAINTENANCE',$configuration->maintenance);
define('LANGUAGE_DEFAULT','es');

/*
 * CMS configuration
 */
define('CMS_MODULEDEFAULT',$configuration->cms_module_default);
define('CMS_THEME',$configuration->cms_theme);

/*
 * JQUERY version
 */
define('JQUERY_VERSION',$configuration->jquery_version);

?>
